package com.yc.sole.financial.exception;

import com.yc.sole.framework.result.IResultMsg;
import lombok.AllArgsConstructor;

/**
 * @author yizuomin
 * @date 2023/12/15 22:43
 **/
@AllArgsConstructor
public enum FinancialResultEnum implements IResultMsg {

    OUTPUT_LESS_THAN_ZERO(40001, "日期:{0},班次:{1},产量为0,无法计算工资"),
    RECEIPT_NOT_FOUND(40002, "收款信息不存在"),
    ORDER_IS_PAID(40003, "此订单已完成收款");

    private final Integer code;
    private final String message;


    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
